class Solution(object):
    def constructRectangle(self, area):
        """
        :type area: int
        :rtype: List[int]
        """
        n = int(area ** 0.5)
        while n >= 1:
            if area % n == 0:
                return [area // n, n]
            else:
                n -= 1



data = Solution()
area = 900
print(data.constructRectangle(area))
